package com.wanwen.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wanwen.utils.PoiHandler;

public class Student implements Serializable{
	@TableId(type = IdType.AUTO)
	@PoiHandler(excelIgnore=true)
	private Integer id;// 编号
	@PoiHandler(excelIgnore=true)
	private Integer uid;// 用户id
	@PoiHandler(excelIgnore=true)
	private Integer uidzx;// 用户id
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	@TableField(value = "creat_time")
	@PoiHandler(excelHeader = "创建时间")
	private Date creatTime;//创建时间
	@TableField(value = "uname")
	@PoiHandler(excelHeader = "用户名称")
	private String uname;// 用户名称
	@PoiHandler(excelHeader = "性别")
	private String sex;// 性别
	@PoiHandler(excelHeader = "地址")
	private String address;// 地址
	@PoiHandler(excelHeader = "邮箱")
	private String email;// 邮箱
	@PoiHandler(excelHeader = "QQ")
	private String qq;// QQ
	@PoiHandler(excelHeader = "电话")
	private String phone;// 电话
	@PoiHandler(excelHeader = "描述")
	private String remark;// 描述
	@TableField(value = "is_visit")
	@PoiHandler(excelIgnore=true)
	private Integer isVisit;// 是否回访
	@TableField(value = "visit_num")
	@PoiHandler(excelHeader = "回访次数")
	private Integer visitNum;// 回访次数
	@PoiHandler(excelIgnore=true)
	@TableField(value = "is_report")
	private Integer isReport;// 是否上门
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")  
	@TableField(value = "report_time")
	@PoiHandler(excelHeader = "上门时间")
	private Date reportTime;//上门时间
	@TableField(value = "is_pay")
	@PoiHandler(excelIgnore=true)
	private Integer isPay;// 是否支付
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")  
	@TableField(value = "pay_time")
	@PoiHandler(excelHeader = "支付时间")
	private Date payTime;//支付时间
	@TableField(value = "is_inclass")
	@PoiHandler(excelIgnore=true)
	private Integer isInclass;// 是否进班
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")  
	@TableField(value = "inclass_time")
	@PoiHandler(excelHeader = "进班时间")
	private Date inclassTime;//进班时间
	@TableField(value = "is_return_money")
	@PoiHandler(excelIgnore=true)
	private Integer isReturnMoney;// 是否退费
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")  
	@TableField(value = "return_money_time")
	@PoiHandler(excelHeader = "退费时间")
	private Date returnMoneyTime;// 退费时间
	@TableField(value = "return_cause")
	@PoiHandler(excelHeader = "退费原因")
	private Integer returnCause;// 退费原因
	@TableLogic(value = "0", delval = "-1")
	@PoiHandler(excelIgnore=true)
	private Integer deleted;
	
	public Student(Integer id, Integer uid, Integer uidzx, Date creatTime, String uname, String sex, String address,
			String email, String qq, String phone, String remark, Integer isVisit, Integer visitNum, Integer isReport,
			Date reportTime, Integer isPay, Date payTime, Integer isInclass, Date inclassTime, Integer isReturnMoney,
			Date returnMoneyTime, Integer returnCause, Integer deleted) {
		super();
		this.id = id;
		this.uid = uid;
		this.uidzx = uidzx;
		this.creatTime = creatTime;
		this.uname = uname;
		this.sex = sex;
		this.address = address;
		this.email = email;
		this.qq = qq;
		this.phone = phone;
		this.remark = remark;
		this.isVisit = isVisit;
		this.visitNum = visitNum;
		this.isReport = isReport;
		this.reportTime = reportTime;
		this.isPay = isPay;
		this.payTime = payTime;
		this.isInclass = isInclass;
		this.inclassTime = inclassTime;
		this.isReturnMoney = isReturnMoney;
		this.returnMoneyTime = returnMoneyTime;
		this.returnCause = returnCause;
		this.deleted = deleted;
	}
	
	public Student() {
		super();
	}
	
	public Integer getUidzx() {
		return uidzx;
	}

	public void setUidzx(Integer uidzx) {
		this.uidzx = uidzx;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public Date getCreatTime() {
		return creatTime;
	}
	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getIsVisit() {
		return isVisit;
	}
	public void setIsVisit(Integer isVisit) {
		this.isVisit = isVisit;
	}
	public Integer getVisitNum() {
		return visitNum;
	}
	public void setVisitNum(Integer visitNum) {
		this.visitNum = visitNum;
	}
	public Integer getIsReport() {
		return isReport;
	}
	public void setIsReport(Integer isReport) {
		this.isReport = isReport;
	}
	public Date getReportTime() {
		return reportTime;
	}
	public void setReportTime(Date reportTime) {
		this.reportTime = reportTime;
	}
	public Integer getIsPay() {
		return isPay;
	}
	public void setIsPay(Integer isPay) {
		this.isPay = isPay;
	}
	public Date getPayTime() {
		return payTime;
	}
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}
	public Integer getIsInclass() {
		return isInclass;
	}
	public void setIsInclass(Integer isInclass) {
		this.isInclass = isInclass;
	}
	public Date getInclassTime() {
		return inclassTime;
	}
	public void setInclassTime(Date inclassTime) {
		this.inclassTime = inclassTime;
	}
	public Integer getIsReturnMoney() {
		return isReturnMoney;
	}
	public void setIsReturnMoney(Integer isReturnMoney) {
		this.isReturnMoney = isReturnMoney;
	}
	public Date getReturnMoneyTime() {
		return returnMoneyTime;
	}
	public void setReturnMoneyTime(Date returnMoneyTime) {
		this.returnMoneyTime = returnMoneyTime;
	}
	public Integer getReturnCause() {
		return returnCause;
	}
	public void setReturnCause(Integer returnCause) {
		this.returnCause = returnCause;
	}
	public Integer getDeleted() {
		return deleted;
	}
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	
	@Override
	public String toString() {
		return "Student [id=" + id + ", uid=" + uid + ", uidzx=" + uidzx + ", creatTime=" + creatTime + ", uname="
				+ uname + ", sex=" + sex + ", address=" + address + ", email=" + email + ", qq=" + qq + ", phone="
				+ phone + ", remark=" + remark + ", isVisit=" + isVisit + ", visitNum=" + visitNum + ", isReport="
				+ isReport + ", reportTime=" + reportTime + ", isPay=" + isPay + ", payTime=" + payTime + ", isInclass="
				+ isInclass + ", inclassTime=" + inclassTime + ", isReturnMoney=" + isReturnMoney + ", returnMoneyTime="
				+ returnMoneyTime + ", returnCause=" + returnCause + ", deleted=" + deleted + "]";
	}


}
